package com.huazh.mapper;

import com.huazh.bean.Account;
import org.apache.ibatis.annotations.*;

@Mapper
public interface AccountMapper {

    @Select("select * from tb_account where id = #{id}")
    Account queryById(@Param("id") Long id);

    @Insert("insert into tb_account (id, user_name, name) values (#{id}, #{userName}, #{name})")
    void add(Account account);

    @Update("update tb_account set locked = 1 where id = #{id}")
    void updateLocked(@Param("id") Long id);
}
